/// 常用的布尔值判断
part of '../basic.dart';

bool get isDesktop =>
    Platform.isMacOS || Platform.isLinux || Platform.isWindows;
bool get isMobile => Platform.isAndroid || Platform.isIOS;

/// 检查一个变量是否是原始值，由于variable有可能为null，所以不能再dynamic中加extension
bool isPrimitive(dynamic variable) =>
    variable is String || variable is num || variable is bool;
